package com.hs.server.handler;

import com.hs.server.runnable.Dispatcher;
import com.hs.server.service.ShResourcexxService;
import com.hs.server.service.VehQueuexxbService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class InitHandle {
    @Autowired
    private ShResourcexxService ShResourcexxService;
    @Autowired
    private VehQueuexxbService vehQueuexxbService;
    @Autowired
    private Dispatcher dispatcher;

    public void init(){
        log.info("审核程序开始......");
        Thread searcher = new Thread(dispatcher);
        log.info("调度线程开启......");
        searcher.start();
    }
}
